﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.Web.Constants
{
    /// <summary>
    /// WebSocket状态码
    /// </summary>
    public class HttpWebSocketStatusCodes
    {
        /// <summary>
        /// 正常关闭
        /// </summary>
        public short NornalClose = 1000;

        /// <summary>
        /// 对方断开连接
        /// </summary>
        public short OtherDisconnect = 1001;

        /// <summary>
        /// 通信方因协议错误关闭连接
        /// </summary>
        public short ProtocalErrorClose = 1002;
    }
}
